<#if tabs?exists>
	<#if (tabs?size > 1)>
		<div class="ui-layout-center">
		<div class="tab">
			<ul>
			    <#list tabs as tab>
				    <#if tab.id == openTab.id>
				    	<li><a id="${tab.id}" href="${base}/admin/redirect?id=${tab.id}" class="here">${tab.name}</a></li>
				    <#else>
				    	<li><a id="${tab.id}" href="${base}/admin/redirect?id=${tab.id}">${tab.name}</a></li>
				    </#if>
			    </#list>
			</ul>
		</div>
		<script type="text/javascript">
			var kv = [
			<#list tabs as tab>
				{id:'${tab.id}', url:'${tab.call!""}',name:'${tab.name!""}'},
			</#list>
			];
			function autoHighlight(){
				try{
					var loc = window.location.href;
					for(var i = 0; i < kv.length; i++){
						if(loc && loc.indexOf(kv[i].url) > 0){
							turnHighLight(kv[i].id);
							//alert(loc + '------' + kv[i].url + '------' + kv[i].id);
							return;
						}
					}
				}
				catch(e){}
			}
			$(document).ready(function(){
				autoHighlight();
			});
		</script>
		<div class="tab-container">
	</#if>
</#if>